//
//  InAppPurchaseManager.h
//  Autismus
//
//  Created by Jean-Élie Le Corre on 15/01/12.
//  Copyright (c) 2012 RedShift. All rights reserved.
//

#import <StoreKit/StoreKit.h>

//Define the protocol for the delegate
@protocol InAppPurchaseManagerDelegate <NSObject>
- (void)initGames;
@end

@interface InAppPurchaseManager : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver, SKRequestDelegate>

- (void)requestProUpgradeProductData;

- (void)completeTransaction: (SKPaymentTransaction *)transaction;
- (void)restoreTransaction: (SKPaymentTransaction *)transaction;
- (void)failedTransaction: (SKPaymentTransaction *)transaction;
- (void)recordTransaction:(SKPaymentTransaction *)transaction;
- (void)provideContent:(NSString *)productIdentifier;

@property (nonatomic, assign) id <InAppPurchaseManagerDelegate> delegate;  

@end